class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.string :content, :default => ""
      t.date :date
      t.string :state , :null => false, :default => "incomplete"
      t.string :address
      t.references :restaurant
      t.references :customer
      t.references :delivery_man
      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end
